package weborb.gcf.security;

import weborb.security.IRolesProvider;

public class RolesProvider implements IRolesProvider {

	public String[] getRoles() {
		System.out.println("getRoles ");
		String roles[] = { "Root","Admin","Users" };
		return roles;
	}

	public String[] getUserRoles(String users) {

		String roles_users[] = { "Users" };
		String roles_admin[] = { "Admin","Users" };
		System.out.println("getUserRoles "+users);
		if ( users.equals("dek") || users.equals("arm") )
			return roles_users;
		if ( users.equals("admin")  )
			return roles_admin;
		
		return null;
	}

}
